<?php

class Source extends Plugin implements PluginInterface{

    private $serverInfo;

    function __construct() {
        parent::__construct(__CLASS__);
    }

    function show() {

        $viewData = array(
            'name' => $this->name
        );

        return $this->loadView('view', $viewData, true);
    }

    function start() {
        $this->execute();
    }

    function stop() {
        
    }

    function getInfo() {
        $this->serverInfo = new GameQ();
        $this->serverInfo->addServer('', array());
        $this->serverInfo->setOption('timeout', 500);
        $this->serverInfo->setFilter('normalise');
        return $this->serverInfo->requestData();
    }
}